package com.ruoyi.web.petmall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "OrderEntity", description = "订单信息实体")
public class OrderEntity {
    @ApiModelProperty("订单id")
    private Long id;

    @ApiModelProperty("宠物id（宠物id 宠物名称）")
    private Long petId;
    @ApiModelProperty(" 宠物名称")
    private String petName;

    @ApiModelProperty(" 宠物价格")
    private String price;

    @ApiModelProperty("用户id（下单用户id）")
    private Long userId;
    @ApiModelProperty("下单用户名")
    private String userName;

    @ApiModelProperty("收件人")
    private String recipient;

    @ApiModelProperty("收货地址")
    private String address;

    @ApiModelProperty("联系电话")
    private Long phone;

    @ApiModelProperty("订单状态（0进行中 1已完成 2已取消 3修改中 4取消中）")
    private Integer state;

    @ApiModelProperty("删除标志（0代表存在 1代表删除）")
    private String delFlag;

    @ApiModelProperty("创建者")
    private String createBy;
    @JsonFormat(pattern = "yyyy年MM月dd日")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新者")
    private String updateBy;
    @JsonFormat(pattern = "yyyy年MM月dd日")
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("当时价格")
   private Integer prevailingPrice;
}
